package com.samebuilding.service.impl;

import java.util.List;

import com.samebuilding.dao.RegionDAO;
import com.samebuilding.service.RegionService;

public class RegionServiceImpl implements RegionService {

	RegionDAO regionDAO;
	public RegionDAO getRegionDAO() {
		return regionDAO;
	}
	public void setRegionDAO(RegionDAO regionDAO) {
		this.regionDAO = regionDAO;
	}
	public List findByCity(int cityCode) {
		
		return regionDAO.findByCity(cityCode);
	}
	public int findCode(String name) {
		// TODO Auto-generated method stub
		return regionDAO.findCode(name);
	}
	public String findName(int code) {
		// TODO Auto-generated method stub
		return regionDAO.findName(code);
	}

}
